/**部门 */
export namespace DeptInterface {
  /** 新增|编辑 */
  export interface ReqSave {
    id: number;
    name: string;
    pid: number;
    managerId: number;
    sort: number;
    remark: string;
  }
  /**列表查询参数 */
  export interface ReqList {
    name?: string;
    status?: number;
    remark?: string;
  }

  /** 获取树结构部门 */
  export interface ResListByTree {
    sort: number;
    children: ResListByTree[];
    id: number;
    name: string;
    pid: number;
    managerId: number;
    status: number;
    remark: string;
    createdTime: string;
    updateTime: string;
  }

  /** 获取树结构部门以及部门下岗位 */
  export interface ResListByTreeByPosition extends ResListByTree {
    // 1:部门 2:岗位
    type: 1 | 2;
    uuid: string;
    deptId: number;
    children: ResListByTreeByPosition[];
  }
}
